#ifndef FASTTASK_H
#define FASTTASK_H

#include <QRunnable>
#include <QFile>
#include "fastbufferhandler.h"

class FastTask : public QRunnable
{
public:
    FastTask(FastBufferHandler *handler);

    // QRunnable interface
public:
    void run();

private:
    void generateData();
    void sendData();
    void recvData();

    void taskLog(QString msg);
    void flushLog();
    QString printVector(QVector<double> data);

private:
    FastBufferHandler *m_handler;
    QString m_logBuffer;
    QFile *m_logFile;
};

#endif // FASTTASK_H
